import './index.scss'
import {microCreateMinis} from '../../minis'

export default {
  name: 'micro-notice-box',
  mixins: [microCreateMinis],
  props: {},
  data() {
    return {
      formData: {
        text: '',
        mode: '',
        background: '#fffbe8',
        color: '#ed6a0c'
      },
      commonCheckFieldRules: 'checkData', // 当前组件默认的规则判断函数
      mySelfCheckRules: 'mySelfCheckFun'// 我自己的验证规则函数  比如弹窗之类的
    }
  },
  watch: {},
  components: {},
  computed: {},
  mounted() {
  },
  methods: {
    /**
     * 开始验证
     * */
    checkData() {
      this.myCheckResult((this.formData.text !== ''))
    },
    /** 弹窗*/
    mySelfCheckFun() { // 可以选择调用默认规则判断
      this.showCheckForm()
    }
  }
}
